@import "default";

header {
  min-width: 100%;
  height: 60px;
  font-size: 14px;
  box-shadow: 0px 3px 5px #e4e4e4;
  background-color: #fff;
  .nav-header {
    width: 1160px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    .nav-header-logo {
      width: 91px;
      height: 20px;
      background: url(/images/logo.png) no-repeat center center;
      background-size: 100%;
      cursor: pointer;
    }
    .nav-header-logo-sub {
      padding-left: 3px;
    }
    .nav-header-tv-icon {
      width: 18px;
      height: 18px;
      margin-left: 40px;
      margin-right: 6px;
      flex-shrink: 0;
      background: url()
        no-repeat center center;
      background-size: 100%;
      cursor: pointer;
    }
    .nav-header-mainsite {
      color: #636c7b;
      width: 60px;
      cursor: pointer;
    }
    .nav-header-search-bar-wrapper {
      flex: 1 1;
      position: relative;
      input {
        width: 360px;
        height: 40px;
        padding-left: 20px;
        background: #f1f3f5;
        border-radius: 40px;
        border: none;
        line-height: 14px;
        color: #6d757a;
        font-size: 12px;
        cursor: auto;
        margin-left: 289px;
        &::placeholder {
          color: #b7b9b8;
        }
      }
      a {
        font-size: 24px;
        color: #989ba0;
        cursor: pointer;
        position: absolute;
        left: 640px;
        top: 8px;
      }
      ul {
        width: 360px;
        position: absolute;
        right: 30px;
        background-color: #fff;
        box-shadow: 0 3px 6px 0 rgba($color: #000000, $alpha: 0.2);
        border-radius: 4px;
        li {
          padding: 10px 16px;
          cursor: pointer;
        }
      }
    }
    .nav-header-regis-login {
      display: flex;
      align-items: center;
      color: #636c7b;
      margin-left: 30px;
      width: 90px;
      .nav-header-register {
        cursor: pointer;
        &:hover {
          color: #f25d8e;
        }
      }
      .nav-header-middle-line {
        width: 1px;
        height: 12px;
        margin: 0 4px;
        background: #afb3b2;
      }
      .nav-header-login {
        cursor: pointer;
        &:hover {
          color: #f25d8e;
        }
      }
    }
    .order-and-icon-wrapper {
      margin-left: 25px;
      display: flex;
      align-items: center;
      color: #74787b;
      .order-icon {
        margin-top: 2px;
        margin-right: 4px;
        &:hover {
          color: #f25d8e;
        }
      }
      .order-center {
        cursor: pointer;
      }
    }
  }
}
.login-window {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  background: rgba($color: #000000, $alpha: 0.4);
  &-container {
    width: 820px;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba($color: #000000, $alpha: 0.1);
    padding: 52px 65px 29px 92px;
    box-sizing: border-box;
    background: {
      color: #fff;
      image: url("https://s1.hdslb.com/bfs/seed/jinkela/short/mini-login/img/22_open.72c00877.png"),
        url("https://s1.hdslb.com/bfs/seed/jinkela/short/mini-login/img/33_open.43a09438.png");
      repeat: no-repeat, no-repeat;
      position: 0 100%, 100% 100%;
      size: 14%;
    }
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .login-window-close {
      width: 18px;
      height: 18px;
      background: url()
        no-repeat center center;
      background-size: cover;
      cursor: pointer;
      position: absolute;
      top: 20px;
      right: 20px;
    }
    .login-window-content {
      width: 664px;
      display: flex;
      justify-content: space-between;
      &-scan {
        width: 173px;
        height: 280px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        .scan-title {
          font-size: 18px;
          text-align: center;
        }
        .scan-qrcode {
          width: 173px;
          height: 173px;
          border: 1px solid #e7e7e7;
          border-radius: 8px;
          display: flex;
          justify-content: center;
          align-items: center;
          position: relative;
          &-refresh {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba($color: #ffffff, $alpha: 0.9);
            z-index: 2;
            .refresh {
              background: url()
                no-repeat 50% #fff;
              border-radius: 50%;
              cursor: pointer;
              width: 56px;
              height: 56px;
              margin: 36px auto 0;
              margin-bottom: 10px;
            }
            p {
              text-align: center;
              font-size: 13px;
              color: #505050;
            }
          }
        }
        .scan-tips {
          width: 330px;
          height: 173px;
          position: absolute;
          top: 110px;
          cursor: pointer;
          opacity: 0;
          z-index: 1;
        }
        .scan-client {
          width: 173px;
          height: 173px;
          background: url()
            no-repeat;
          background-size: cover;
          position: relative;
          p {
            font-size: 18px;
            text-align: center;
            margin-top: -45px;
          }
        }
        .scan-bottom {
          font-size: 14px;
          a {
            color: #00a1d6;
          }
        }
      }
      &-line {
        width: 1px;
        height: 228px;
        position: relative;
        bottom: 0;
        top: 50px;
        background-color: #e7e7e7;
      }
      &-login {
        width: 400px;
        height: 280px;
        .login-tab {
          font-size: 18px;
          text-align: center;
          .isActive {
            color: #4fa5d9;
          }
          &-password {
            cursor: pointer;
          }
          &-line {
            width: 1px;
            height: 20px;
            background: #e7e7e7;
            margin: 0 21px;
          }
          &-message {
            cursor: pointer;
          }
        }
        .login-password-wrapper {
          width: 400px;
          height: 228px;
          &-container {
            width: 400px;
            height: 89px;
            border: 1px solid #e7e7e7;
            border-radius: 8px;
            margin-top: 24px;
            .password-wrapper-account {
              width: 100%;
              height: 50%;
              box-sizing: border-box;
              padding: 0 20px;
              display: flex;
              align-items: center;
              border-bottom: 1px solid #e7e7e7;
              label {
                margin-right: 20px;
              }
              input {
                width: 230px;
                height: 100%;
                border: none;
              }
              .line {
                width: 1px;
                height: 26px;
                display: inline-block;
                background: #e7e7e7;
                margin-right: 24px;
              }
              .message-getcode {
                color: #00a1d6;
                white-space: nowrap;
              }
            }
            .password-wrapper-password {
              width: 100%;
              height: 50%;
              padding: 0 20px;
              display: flex;
              align-items: center;
              label {
                margin-right: 20px;
              }
              input {
                width: 230px;
                height: 100%;
                border: none;
              }
              a {
                color: #00a1d6;
              }
            }
          }
          &-btn {
            width: 400px;
            height: 40px;
            margin-top: 20px;
            display: flex;
            justify-content: center;
            .password-btn-login {
              width: 194px;
              height: 40px;
              margin-right: 13px;
              border: 1px solid #e7e7e7;
              border-radius: 8px;
              text-align: center;
              line-height: 40px;
              cursor: pointer;
              &:hover {
                color: #00a1d6;
                border-color: #00a1d6;
              }
            }
            .password-btn-register {
              @extend .password-btn-login;
              border: none;
              background: #00a1d6;
              color: #fff;
              &:hover {
                background-color: #33b4de;
                color: #fff;
              }
            }
            .password-btn-login-message {
              @extend .password-btn-register;
            }
          }
          &-other {
            width: 400px;
            height: 56px;
            margin-top: 20px;
            .title {
              font-size: 13px;
              color: #999;
              text-align: center;
            }
            .other-sns {
              width: 400px;
              height: 28px;
              margin-top: 10px;
              font-size: 12px;
              display: flex;
              justify-content: space-around;
              .btn {
                display: flex;
                align-items: center;
                cursor: pointer;
              }
              .wechat::before {
                display: inline-block;
                content: "";
                width: 28px;
                height: 28px;
                margin-right: 8px;
                background: url()
                  no-repeat;
                background-size: cover;
              }
              .weibo::before {
                @extend .wechat;
                background: url()
                  no-repeat;
                background-size: cover;
              }
              .qq::before {
                @extend .wechat;
                background: url()
                  no-repeat;
                background-size: cover;
              }
            }
          }
        }
      }
    }
    .login-window-bottom-agreement {
      font-size: 13px;
      color: #999;
      margin-top: 40px;
      text-align: center;
      a {
        color: #00a1d6;
      }
    }
  }
}
